home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
moden
/
examples
/
exlog0.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-04-08
|
840b
|
43 lines
unit Exlog0;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, ExtCtrls, AdTerm, AdPort;
type
TExampleLog = class(TForm)
ApdComPort1: TApdComPort;
ApdTerminal1: TApdTerminal;
LogOps: TRadioGroup;
Quit: TButton;
procedure QuitClick(Sender: TObject);
procedure LogOpsClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
ExampleLog: TExampleLog;
implementation
{$R *.DFM}
procedure TExampleLog.QuitClick(Sender: TObject);
begin
Close;
end;
procedure TExampleLog.LogOpsClick(Sender: TObject);
begin
ApdComPort1.Logging := TTraceLogState(LogOps.ItemIndex);
LogOps.ItemIndex := Ord(ApdComPort1.Logging);
ApdTerminal1.SetFocus;
end;
end.